<script setup lang="ts">
import ChannelNav from './components/ChannelNav.vue';
import ArticleList from './components/ArticleList.vue'
import {ref} from "vue"

// 响应式数据
// 当前频道id
const channelId=ref(0);
</script>

<template>
  <ChannelNav :channelId=channelId @changeChannel="channelId=$event"></ChannelNav>
  <ArticleList :channelId=channelId></ArticleList>
</template>

<style scoped>
</style>
